import { IPaginationOptions } from './types/pagination-options';

export const infinityPagination = <T>(data: T[], options: IPaginationOptions) => {
	return {
		data,
		hasNextPage: data.length === options.pageSize,
	};
};
